{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/nj4353/Dropbox/Guillermo and Nate Research Project/TAPSsurvey/R&P US TAPS 2015.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}21 Feb 2018, 14:22:47

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. svyset wustlid [pweight= mar2015wt1], vce(linearized) singleunit(missing)

      {txt}pweight:{col 16}{res}mar2015wt1
          {txt}VCE:{col 16}{res}linearized
  {txt}Single unit:{col 16}{res}missing
     {txt}Strata 1:{col 16}<one>
         SU 1:{col 16}{res}wustlid
        {txt}FPC 1:{col 16}<zero>
{p2colreset}{...}

{com}. 
{txt}end of do-file

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. 
. /* Panel 1 */
. svy: tab polresp xgroupab, col ci level(95)
{err}variable {bf}polresp{sf} not found
{txt}{search r(111), local:r(111);}

end of do-file

{search r(111), local:r(111);}

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. gen polresp=0 if xgroupab~=.
{txt}(1,313 missing values generated)

{com}. replace polresp=1 if ROSAS11S40==2 | ROSAS21S40==2 | ROSAS31S40==2 | ROSAS41S40==2
{txt}(367 real changes made)

{com}. replace polresp=. if ROSAS11S40==-1 | ROSAS21S40==-1 | ROSAS31S40==-1 | ROSAS41S40==-1
{txt}(14 real changes made, 14 to missing)

{com}. 
. gen globeresp=0 if xgroupab~=.
{txt}(1,313 missing values generated)

{com}. replace globeresp=1 if ROSAS11S40==3 | ROSAS21S40==3 | ROSAS31S40==3 | ROSAS41S40==3
{txt}(393 real changes made)

{com}. replace globeresp=. if ROSAS11S40==-1 | ROSAS21S40==-1 | ROSAS31S40==-1 | ROSAS41S40==-1
{txt}(14 real changes made, 14 to missing)

{com}. 
{txt}end of do-file

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. gen polresp2=0 if xgroupab~=.
{txt}(1,313 missing values generated)

{com}. replace polresp2=1 if ROSAS13S40==2 | ROSAS23S40==2 | ROSAS33S40==2 | ROSAS43S40==2
{txt}(383 real changes made)

{com}. replace polresp2=. if ROSAS13S40==-1 | ROSAS23S40==-1 | ROSAS33S40==-1 | ROSAS43S40==-1
{txt}(17 real changes made, 17 to missing)

{com}. 
. gen globeresp2=0 if xgroupab~=.
{txt}(1,313 missing values generated)

{com}. replace globeresp2=1 if ROSAS13S40==3 | ROSAS23S40==3 | ROSAS33S40==3 | ROSAS43S40==3
{txt}(353 real changes made)

{com}. replace globeresp2=. if ROSAS13S40==-1 | ROSAS23S40==-1 | ROSAS33S40==-1 | ROSAS43S40==-1
{txt}(17 real changes made, 17 to missing)

{com}. 
{txt}end of do-file

{com}. do "/var/folders/wg/2nf5dd1x4rsfhz_95yv82clsjw_nrn/T//SD01009.000000"
{txt}
{com}. 
. /* Panel 1 */
. svy: tab polresp xgroupab, col ci level(95)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     1,459
{txt}{col 1}Number of PSUs{col 20}= {res}    1,459{txt}{col 49}Population size{col 67}={res}   1,460.99
{txt}{col 49}Design df{col 67}= {res}     1,458

{txt}{hline 10}{c TT}{hline 69}
          {c |}                        XGROUPAB Randomization                       
  polresp {c |}            1             2             3             4         Total
{hline 10}{c +}{hline 69}
        0 {c |}        {res}.8847         .5942         .8868         .6052         .7423
          {txt}{c |} {res}[.7986,.937]  [.512,.6715]  [.8384,.922]  [.519,.6853]  [.704,.7772]
          {txt}{c |} 
        1 {c |}        {res}.1153         .4058         .1132         .3948         .2577
          {txt}{c |} {res}[.063,.2014]  [.3285,.488]  [.078,.1616]  [.3147,.481]  [.2228,.296]
          {txt}{c |} 
    Total {c |}            {res}1             1             1             1             1
          {txt}{c |}             {res}                                                        
{txt}{hline 10}{c BT}{hline 69}
  Key:  {col 1}{res}column proportion
{col 9}[95% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res} 156.2798
{txt}{col 5}Design-based{col 19}F({res}2.72{txt}, {res}3970.16{txt}){col 35}= {res}  18.5716{col 51}{txt}P = {res}0.0000
{txt}
{com}. 
. /* Panel 2 */
. svy: tab globeresp xgroupab, col ci level(95)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     1,459
{txt}{col 1}Number of PSUs{col 20}= {res}    1,459{txt}{col 49}Population size{col 67}={res}   1,460.99
{txt}{col 49}Design df{col 67}= {res}     1,458

{txt}{hline 10}{c TT}{hline 74}
          {c |}                          XGROUPAB Randomization                          
globeresp {c |}             1              2              3              4          Total
{hline 10}{c +}{hline 74}
        0 {c |}         {res}.7201          .7733           .738           .786          .7543
          {txt}{c |}  {res}[.6404,.788]  [.7034,.8308]  [.6687,.7972]  [.7089,.8471]  [.7188,.7867]
          {txt}{c |} 
        1 {c |}         {res}.2799          .2267           .262           .214          .2457
          {txt}{c |}  {res}[.212,.3596]  [.1692,.2966]  [.2028,.3313]  [.1529,.2911]  [.2133,.2812]
          {txt}{c |} 
    Total {c |}             {res}1              1              1              1              1
          {txt}{c |}              {res}                                                            
{txt}{hline 10}{c BT}{hline 74}
  Key:  {col 1}{res}column proportion
{col 9}[95% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res}   5.4793
{txt}{col 5}Design-based{col 19}F({res}2.98{txt}, {res}4344.70{txt}){col 35}= {res}   0.7686{col 51}{txt}P = {res}0.5107
{txt}
{com}. 
. /* Robustness */
. 
. svy: tab polresp2 xgroupab, col ci level(95)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     1,456
{txt}{col 1}Number of PSUs{col 20}= {res}    1,456{txt}{col 49}Population size{col 67}={res}   1,450.93
{txt}{col 49}Design df{col 67}= {res}     1,455

{txt}{hline 10}{c TT}{hline 74}
          {c |}                          XGROUPAB Randomization                          
 polresp2 {c |}             1              2              3              4          Total
{hline 10}{c +}{hline 74}
        0 {c |}         {res}.9293          .5064          .8758          .5318          .7099
          {txt}{c |} {res}[.8817,.9586]  [.4255,.5869]  [.8104,.9209]  [.4455,.6162]   [.6697,.747]
          {txt}{c |} 
        1 {c |}         {res}.0707          .4936          .1242          .4682          .2901
          {txt}{c |} {res}[.0414,.1183]  [.4131,.5745]  [.0791,.1896]  [.3838,.5545]   [.253,.3303]
          {txt}{c |} 
    Total {c |}             {res}1              1              1              1              1
          {txt}{c |}              {res}                                                            
{txt}{hline 10}{c BT}{hline 74}
  Key:  {col 1}{res}column proportion
{col 9}[95% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res} 263.7737
{txt}{col 5}Design-based{col 19}F({res}2.96{txt}, {res}4310.35{txt}){col 35}= {res}  36.0693{col 51}{txt}P = {res}0.0000
{txt}
{com}. svy: tab globeresp2 xgroupab, col ci level(95)
{txt}(running tabulate on estimation sample)
{res}
{txt}{col 1}Number of strata{col 20}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}     1,456
{txt}{col 1}Number of PSUs{col 20}= {res}    1,456{txt}{col 49}Population size{col 67}={res}   1,450.93
{txt}{col 49}Design df{col 67}= {res}     1,455

{txt}{hline 10}{c TT}{hline 74}
globeresp {c |}                          XGROUPAB Randomization                          
2         {c |}             1              2              3              4          Total
{hline 10}{c +}{hline 74}
        0 {c |}         {res}.6817          .8531          .7172          .8606          .7783
          {txt}{c |} {res}[.5988,.7544]  [.7986,.8949]   [.6421,.782]    [.798,.906]  [.7439,.8093]
          {txt}{c |} 
        1 {c |}         {res}.3183          .1469          .2828          .1394          .2217
          {txt}{c |} {res}[.2456,.4012]  [.1051,.2014]   [.218,.3579]    [.094,.202]  [.1907,.2561]
          {txt}{c |} 
    Total {c |}             {res}1              1              1              1              1
          {txt}{c |}              {res}                                                            
{txt}{hline 10}{c BT}{hline 74}
  Key:  {col 1}{res}column proportion
{col 9}[95% confidence interval for column proportion]

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}3{txt}){col 35}= {res}  53.5164
{txt}{col 5}Design-based{col 19}F({res}2.96{txt}, {res}4312.96{txt}){col 35}= {res}   8.0654{col 51}{txt}P = {res}0.0000
{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/nj4353/Dropbox/Guillermo and Nate Research Project/TAPSsurvey/R&P US TAPS 2015.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}21 Feb 2018, 14:23:55
{txt}{.-}
{smcl}
{txt}{sf}{ul off}